package com.yj.rselasticsearch.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yj.common.core.domain.entity.WhiteList;
import com.yj.rselasticsearch.mapper.WhiteListMapper;
import com.yj.rselasticsearch.service.WhiteListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class WhiteListServiceImpl extends ServiceImpl<WhiteListMapper,WhiteList> implements WhiteListService{

    @Resource
    private WhiteListMapper whiteListMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return whiteListMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WhiteList record) {
        return whiteListMapper.insert(record);
    }

    @Override
    public int insertSelective(WhiteList record) {
        return whiteListMapper.insertSelective(record);
    }

    @Override
    public WhiteList selectByPrimaryKey(Integer id) {
        return whiteListMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(WhiteList record) {
        return whiteListMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WhiteList record) {
        return whiteListMapper.updateByPrimaryKey(record);
    }

}
